<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initPlugins()
    {
        $this->bootstrap('frontController');
        $frontController = Zend_Controller_Front::getInstance();
        $frontController->setParam('noErrorHandler', true);
        $frontController->unregisterPlugin('Zend_Controller_Plugin_ErrorHandler');
        $frontController->registerPlugin(new Jwawa_Controller_Plugin_ErrorHandler());
        $frontController->registerPlugin(new Jwawa_Controller_Plugin_Acl());
    }

    protected function _initLog()
    {
        $log = Zend_Registry::get('log');

        return $log;
    }
}

